package com.mmm.station.base.entity;


import java.io.Serializable;

public class BaseResult implements Serializable {

	private int statusCode;
	private boolean success;
	private Object message;
	private Object msg;

	public BaseResult() {
	}

	public BaseResult(boolean success, Object message) {

			this(StatusCode.NORMAL, success, message);

	}

	public BaseResult(boolean success, Object message, Object msg) {
		this(StatusCode.NORMAL, success, message,msg);
	}


	public BaseResult(StatusCode statusCode, boolean success, Object message) {
		this.statusCode = statusCode.value();
		this.success = success;
		this.message = message;
		this.msg = message;
	}
	public BaseResult(StatusCode statusCode, boolean success, Object message, Object msg) {
		this.statusCode = statusCode.value();
		this.success = success;
		this.message = message;
		this.msg = msg;
	}
	public int getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(StatusCode statusCode) {
		this.statusCode = statusCode.value();
	}

	public boolean getSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Object getMessage() {
		return message;
	}

	public void setMessage(Object message) {
		this.message = message;
		this.msg = message;
	}

	public Object getMsg() {
		return msg;
	}

	public void setMsg(Object msg) {
		this.message = msg;
		this.msg = msg;
	}

}
